package main

import (
	"gee/day4-group-new/gee"
	"net/http"
)

func main() {
	r := gee.New()
	r.GET("/index", func(c *gee.Context) {
		c.HTML(http.StatusOK, "<h1>page Index</h1>")
	})
	v1 := r.Group("/v1")

	{
		v1.GET("/", func(c *gee.Context) {
			c.HTML(http.StatusOK, "<h1>hello Gee</h1>")
		})
		v1.GET("/hello", func(c *gee.Context) {
			c.String(http.StatusOK, "hello %s, you're at %s \n", c.Query("name"), c.Path)
		})
	}

	r.Run(":9999")

}
